package com.tang.springbootswagger.pojo;/*
 *   @author Dram
 *   @create 2021-04-08 9:27
 */

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

public class Student implements Serializable {
    @ApiModelProperty(value = "学生id", name = "id")
    private Integer id;
    @ApiModelProperty(value = "学生年龄", name = "age")
    private Integer age;
    @ApiModelProperty(value = "学生姓名", name = "name")
    private String name;

    public Student(Integer id, Integer age, String name) {
        this.id = id;
        this.age = age;
        this.name = name;
    }

    public Student() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}
